package com.neu.carbon.mes.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.neu.common.annotation.Excel;
import com.neu.common.core.domain.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 产品BOM单对象 mes_product_bom
 * 
 * @author neuedu
 * @date 2024-03-02
 */
@ApiModel("产品BOM单")
public class MesProductBom extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @ApiModelProperty("编号")
    @Excel(name = "编号")
    private Long id;

    /** 名称 */
    @ApiModelProperty("名称")
    @Excel(name = "名称")
    private String modelName;

    /** 产品id */
    @ApiModelProperty("产品id")
    @Excel(name = "产品id")
    private Long productId;

    /** 描述 */
    @ApiModelProperty("描述")
    private String description;

    /** 产品 */
    @ApiModelProperty("产品")
    @Excel(name = "产品")
    private String name;

    /** 产品型号 */
    @ApiModelProperty("产品型号")
    @Excel(name = "产品型号")
    private String model;

    /** 产品规格 */
    @ApiModelProperty("产品规格")
    @Excel(name = "产品规格")
    private String specification;

    /** 产品单位 */
    @ApiModelProperty("产品单位")
    @Excel(name = "产品单位")
    private String unit;

    /** BOM单明细信息 */
	@ApiModelProperty(hidden = true)
    private List<MesProductBomDetail> mesProductBomDetailList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setModelName(String modelName)
    {
        this.modelName = modelName;
    }

    public String getModelName()
    {
        return modelName;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }


    public List<MesProductBomDetail> getMesProductBomDetailList()
    {
        return mesProductBomDetailList;
    }

    public void setMesProductBomDetailList(List<MesProductBomDetail> mesProductBomDetailList)
    {
        this.mesProductBomDetailList = mesProductBomDetailList;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setModel(String model)
    {
        this.model = model;
    }

    public String getModel()
    {
        return model;
    }
    public void setSpecification(String specification)
    {
        this.specification = specification;
    }

    public String getSpecification()
    {
        return specification;
    }
    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("modelName", getModelName())
            .append("productId", getProductId())
            .append("description", getDescription())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("mesProductBomDetailList", getMesProductBomDetailList())
            .append("name", getName())
            .append("model", getModel())
            .append("specification", getSpecification())
            .append("unit", getUnit())
            .toString();
    }
}
